import Vue from 'vue'
import Vuex from'vuex'

import moduleCart from '@/store/cart.js'
import moduleUser from '@/store/user.js'

Vue.use(Vuex)

const store=  new Vuex.Store({
	modules:{
		//购物车模块中cart数组的访问路径是m_cart/cart
		m_cart:moduleCart,
		m_user:moduleUser,
	},
})

export default store